/**
 * 
 */
package com.wutianyi.nio.interfaces;

import java.io.IOException;
import java.nio.ByteBuffer;
import java.nio.channels.ByteChannel;


/**
 * @author wutianyi
 *
 */
public interface OutputQueue {
	
	boolean isEmpty();
	
	int drainTo(ByteChannel channel) throws IOException;
	
	boolean enqueue(ByteBuffer byteBuffer);
}
